package com.ch01.ex26;

/**
 * Created by zc on 2016/1/27.
 */
public class Producer implements Runnable {
    private EventStorage storage;

    public Producer(EventStorage storage) {
        this.storage = storage;
    }

    @Override
    public void run() {
        for(int i=0; i<100; i++){
            storage.set();
        }
    }
}
